package cn.hdmis.service.impl;

import java.util.List;

import cn.hdmis.dao.ClassRoomDao;
import cn.hdmis.dao.GradeDao;
import cn.hdmis.entity.Grade;
import cn.hdmis.service.GradeService;

public class GradeServiceImpl implements GradeService {
	
	private GradeDao gradeDao;
	private ClassRoomDao roomDao;

	public void setGradeDao(GradeDao gradeDao) {
		this.gradeDao = gradeDao;
	}
	public GradeDao getGradeDao() {
		return gradeDao;
	}
	public ClassRoomDao getRoomDao() {
		return roomDao;
	}
	public void setRoomDao(ClassRoomDao roomDao) {
		this.roomDao = roomDao;
	}
	@Override
	public void addGrade(Grade grade) {
		gradeDao.addGrade(grade);
	}
	@Override
	public List<Grade> getAllGrade() {
		return gradeDao.findAllEntity();
	}
	@Override
	public void delGrade(Integer gradeID) {
		// TODO Auto-generated method stub
		gradeDao.delete(gradeID);
	}
}
